/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import (reference) '../../../styles/variables.less';

.data-quality-card-container {
  .data-quality-total-test {
    font-size: 14px;
    font-weight: 400;
    color: @grey-600;

    .data-quality-total-test-value {
      font-weight: 600;
      color: @grey-800;
    }
  }
}

.data-quality-legends-container {
  display: flex;
  align-items: center;
  gap: 32px;

  .data-quality-legends-item {
    display: flex;
    align-items: center;
    gap: 8px;

    .data-quality-legends-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;

      &.success {
        background: @green-500;
      }

      &.failed {
        background: @red-22;
      }
      &.aborted {
        background: @orange-8;
      }
    }

    .data-quality-legends-label {
      font-size: 14px;
      font-weight: 400;
      color: @grey-600;

      .data-quality-legends-value {
        font-weight: 600;
        color: @grey-800;
      }
    }
  }
}

.data-quality-line-chart-container {
  height: 12px;
  width: 100%;
  margin: 12px 0;
  display: flex;
  border-radius: 2px;
  overflow: hidden;

  .data-quality-line-chart-item {
    height: 100%;
    margin-right: 2px;

    &.success {
      background: @green-500;
    }

    &.failed {
      background: @red-22;
    }
    &.aborted {
      background: @orange-8;
      margin-right: 0;
    }
  }
}

.data-quality-test-item-container {
  margin-top: 26px;
}
